<template>
  <div>{{ $route.params.code }}</div>
</template>

<script>
export default {
  created () {
    this.createModal()
  },
  methods: {
    createModal () {
      const errorParams = {
        title: '错误信息',
        content: '错误内容'
      }
      const errorCode = this.$route.params.code
      switch (errorCode) {
        case '405':
          errorParams.title = '不允许访问的方法'
          errorParams.content = '当前账号不允许访问该页面!'
      }
      this.$Modal.error(errorParams)
    }
  }
}
</script>

<style>
</style>
